package com.example.qxfw.common.entity;

import java.util.Date;
import java.util.Objects;

/************************************
 *
 * @author : HuangDeYin Jolly
 * @since : JDK 11
 * @Date : 2023/6/30  星期五   15:49
 * @description : 此类用来  用户表
 ***************************************/
public class UserTable {

    private String username;

    private Integer id;

    private String password;

    private String servicewebaddress;

    private String servicewechataddress;

    private Date inputtime;

    private String performer;

    private String permission;

    private String reservoirid;

    private String reservoirname;

    private String drainagearea;

    private String county;

    private String lon;

    private String lat;

    private String range;

    public String getUsername() {
        return username;
    }

    public void setUsername(final String username) {
        this.username = username;
    }

    public Integer getId() {
        return id;
    }

    public void setId(final Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(final String password) {
        this.password = password;
    }

    public String getServicewebaddress() {
        return servicewebaddress;
    }

    public void setServicewebaddress(final String servicewebaddress) {
        this.servicewebaddress = servicewebaddress;
    }

    public String getServicewechataddress() {
        return servicewechataddress;
    }

    public void setServicewechataddress(final String servicewechataddress) {
        this.servicewechataddress = servicewechataddress;
    }

    public Date getInputtime() {
        return inputtime;
    }

    public void setInputtime(final Date inputtime) {
        this.inputtime = inputtime;
    }

    public String getPerformer() {
        return performer;
    }

    public void setPerformer(final String performer) {
        this.performer = performer;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(final String permission) {
        this.permission = permission;
    }

    public String getReservoirid() {
        return reservoirid;
    }

    public void setReservoirid(final String reservoirid) {
        this.reservoirid = reservoirid;
    }

    public String getReservoirname() {
        return reservoirname;
    }

    public void setReservoirname(final String reservoirname) {
        this.reservoirname = reservoirname;
    }

    public String getDrainagearea() {
        return drainagearea;
    }

    public void setDrainagearea(final String drainagearea) {
        this.drainagearea = drainagearea;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(final String county) {
        this.county = county;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(final String lon) {
        this.lon = lon;
    }



    @Override
    public boolean equals(final Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        final UserTable userTable = (UserTable) o;

        if (!Objects.equals(username, userTable.username)) return false;
        if (!Objects.equals(id, userTable.id)) return false;
        if (!Objects.equals(password, userTable.password)) return false;
        if (!Objects.equals(servicewebaddress, userTable.servicewebaddress))
            return false;
        if (!Objects.equals(servicewechataddress, userTable.servicewechataddress))
            return false;
        if (!Objects.equals(inputtime, userTable.inputtime)) return false;
        if (!Objects.equals(performer, userTable.performer)) return false;
        if (!Objects.equals(permission, userTable.permission)) return false;
        if (!Objects.equals(reservoirid, userTable.reservoirid))
            return false;
        if (!Objects.equals(reservoirname, userTable.reservoirname))
            return false;
        if (!Objects.equals(drainagearea, userTable.drainagearea))
            return false;
        if (!Objects.equals(county, userTable.county)) return false;
        return Objects.equals(lon, userTable.lon);
    }

    @Override
    public int hashCode() {
        int result = username != null ? username.hashCode() : 0;
        result = 31 * result + (id != null ? id.hashCode() : 0);
        result = 31 * result + (password != null ? password.hashCode() : 0);
        result = 31 * result + (servicewebaddress != null ? servicewebaddress.hashCode() : 0);
        result = 31 * result + (servicewechataddress != null ? servicewechataddress.hashCode() : 0);
        result = 31 * result + (inputtime != null ? inputtime.hashCode() : 0);
        result = 31 * result + (performer != null ? performer.hashCode() : 0);
        result = 31 * result + (permission != null ? permission.hashCode() : 0);
        result = 31 * result + (reservoirid != null ? reservoirid.hashCode() : 0);
        result = 31 * result + (reservoirname != null ? reservoirname.hashCode() : 0);
        result = 31 * result + (drainagearea != null ? drainagearea.hashCode() : 0);
        result = 31 * result + (county != null ? county.hashCode() : 0);
        result = 31 * result + (lon != null ? lon.hashCode() : 0);
        return result;
    }


    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("UserTable{");
        sb.append("username='").append(username).append('\'');
        sb.append(", id=").append(id);
        sb.append(", password='").append(password).append('\'');
        sb.append(", servicewebaddress='").append(servicewebaddress).append('\'');
        sb.append(", servicewechataddress='").append(servicewechataddress).append('\'');
        sb.append(", inputtime=").append(inputtime);
        sb.append(", performer='").append(performer).append('\'');
        sb.append(", permission='").append(permission).append('\'');
        sb.append(", reservoirid='").append(reservoirid).append('\'');
        sb.append(", reservoirname='").append(reservoirname).append('\'');
        sb.append(", drainagearea='").append(drainagearea).append('\'');
        sb.append(", county='").append(county).append('\'');
        sb.append(", lon='").append(lon).append('\'');
        sb.append(", lat='").append(lat).append('\'');
        sb.append(", range='").append(range).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
